package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 俱乐部会员
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClubUsers extends Model<ClubUsers> {

    private static final long serialVersionUID=1L;

    /**
     * 俱乐部会员id
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 会员id
     */
    private String userId;

    /**
     * 会员名称
     */
    private String userName;

    /**
     * 会员手机号码(未授权空)
     */
    private String userMobile;

    /**
     * 性别 female 女 male男 none其他
     */
    private String userSex;

    /**
     * 所属门店
     */
    private String shopId;

    /**
     * 所属门店名称
     */
    private String shopName;

    /**
     * 所属门店的头像
     */
    private String shopAvater;

    /**
     * 所属俱乐部
     */
    private String clubId;

    /**
     * 所属俱乐部名称
     */
    private String clubName;

    /**
     * 用户积分
     */
    private Integer userJf;

    /**
     * 用户状态online-在读-before历史-latent
     */
    private String userShowStatus;

    /**
     * 号码授权时间
     */
    private Date authTime;

    /**
     * 上课教练ID
     */
    private String attendCoach;

    /**
     * 上课教练名称
     */
    private String attendCoachName;

    /**
     * 归属教练ID
     */
    private String affiliationCoach;

    /**
     * 归属教练名称
     */
    private String affiliationCoachName;

    /**
     * 归属教练的头像
     */
    private String affiliationCoachAvater;

    /**
     * 用户头像
     */
    private String userIcon;

    /**
     * 生日
     */
    private String birthDate;

    /**
     * 状态1-启用0-禁用
     */
    private Integer status;

    /**
     * 在读课程上课门店id
     */
    private String attendShop;

    /**
     * 在读课程上课门店名称
     */
    private String attendShopName;

    /**
     * 在读课程剩余课时
     */
    private Integer remainHours;

    /**
     * 在读课程总课时
     */
    private Integer sumHours;

    /**
     * 加入时间
     */
    private Date createTime;

    /**
     * 在读课程名称
     */
    private String buyCourseName;

    /**
     * 在读课程id
     */
    private String buyCourseId;

    /**
     * 关注时间
     */
    private Date attentionTime;

    /**
     * 加入类型 0-关注教练 1-关注门店
     */
    private Integer attentionType;

    /**
     * 关注状态 1-关注 0-取消关注
     */
    private Integer attentionStatus;

    /**
     * 孩子姓名
     */
    private String sonName;

    /**
     * 孩子生日
     */
    private String sonDate;

    /**
     * 所在省
     */
    private String province;

    /**
     * 所在市
     */
    private String city;

    /**
     * 所在区
     */
    private String area;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 学校
     */
    private String sonSchool;

    /**
     * 所在省
     */
    private String provinceText;

    /**
     * 所在市
     */
    private String cityText;

    /**
     * 所在区
     */
    private String areaText;

    /**
     * 申请兑换积分商品时间
     */
    private Date applyTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String USER_MOBILE = "user_mobile";

    public static final String USER_SEX = "user_sex";

    public static final String SHOP_ID = "shop_id";

    public static final String SHOP_NAME = "shop_name";

    public static final String SHOP_AVATER = "shop_avater";

    public static final String CLUB_ID = "club_id";

    public static final String CLUB_NAME = "club_name";

    public static final String USER_JF = "user_jf";

    public static final String USER_SHOW_STATUS = "user_show_status";

    public static final String AUTH_TIME = "auth_time";

    public static final String ATTEND_COACH = "attend_coach";

    public static final String ATTEND_COACH_NAME = "attend_coach_name";

    public static final String AFFILIATION_COACH = "affiliation_coach";

    public static final String AFFILIATION_COACH_NAME = "affiliation_coach_name";

    public static final String AFFILIATION_COACH_AVATER = "affiliation_coach_avater";

    public static final String USER_ICON = "user_icon";

    public static final String BIRTH_DATE = "birth_date";

    public static final String STATUS = "status";

    public static final String ATTEND_SHOP = "attend_shop";

    public static final String ATTEND_SHOP_NAME = "attend_shop_name";

    public static final String REMAIN_HOURS = "remain_hours";

    public static final String SUM_HOURS = "sum_hours";

    public static final String CREATE_TIME = "create_time";

    public static final String BUY_COURSE_NAME = "buy_course_name";

    public static final String BUY_COURSE_ID = "buy_course_id";

    public static final String ATTENTION_TIME = "attention_time";

    public static final String ATTENTION_TYPE = "attention_type";

    public static final String ATTENTION_STATUS = "attention_status";

    public static final String SON_NAME = "son_name";

    public static final String SON_DATE = "son_date";

    public static final String PROVINCE = "province";

    public static final String CITY = "city";

    public static final String AREA = "area";

    public static final String ADDRESS = "address";

    public static final String SON_SCHOOL = "son_school";

    public static final String PROVINCE_TEXT = "province_text";

    public static final String CITY_TEXT = "city_text";

    public static final String AREA_TEXT = "area_text";

    public static final String APPLY_TIME = "apply_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
